<?php

class CrawlerController extends Controller
{
	public $layout='column1';

	/**
	 * This is the action to handle external exceptions.
	 */
	public function actionIndex()
	{
		$categories = CrawlerCategories::model()->findAll();
		foreach($categories as $cat){
			$criteria = new CDbCriteria();
			$criteria->compare('category_id',$cat->id);
			$pattern = CrawlerPatterns::model()->findAll($criteria);
		}
	}
}